<?php 
	include_once 'thuvienham.php';
	include_once 'gmail_db.php';

	class gmail_bs 
	{
		//------------------Fields [4]------------------
			// #0
		private $TenDangNhap = "";
		public function SetTenDangNhap($TenDangNhap) { $this->TenDangNhap = $TenDangNhap; }
		public function GetTenDangNhap()             { return $this->TenDangNhap;         }
			// #1
		private $MatKhau = "";
		public function SetMatKhau($MatKhau)         { $this->MatKhau = $MatKhau;         }
		public function GetMatKhau()                 { return $this->MatKhau;             }
			// #2
		private $ChuDe = "";
		public function SetChuDe($ChuDe)             { $this->ChuDe = $ChuDe;             }
		public function GetChuDe()                   { return $this->ChuDe;               }
			// #3
		private $ThongBaoLoi = -1;
        public function SetThongBaoLoi($ThongBaoLoi) { $this->ThongBaoLoi = $ThongBaoLoi; }
		public function GetThongBaoLoi()             { return $this->ThongBaoLoi;         }

		//------------------Method------------------
		public function Them()
		{
			$data = new gmail_db();
			return $data->Them($this->TenDangNhap, $this->MatKhau, $this->ChuDe, $this->ThongBaoLoi);
		}

		public function Xoa()
		{
			$data = new gmail_db();
			return $data->Xoa($this->TenDangNhap);
		}

		public function CapNhat()
		{
			$data = new gmail_db();
			return $data->CapNhat($this->TenDangNhap, $this->MatKhau, $this->ChuDe, $this->ThongBaoLoi);
		}

		public function LayDanhSach()
		{
			$data = new gmail_db();
			return $data->LayDanhSach($this->TenDangNhap, $this->MatKhau, $this->ChuDe, $this->ThongBaoLoi);
		}

	}

